import request from '@/utils/request'

export function emptyPlatOccupation(data) {
    return request({
        url: '/system/inventoryCounting/emptyPlatformOccupation',
        method: 'post',
        data: data
    })
}

export function callSpaceTrust(data) {
    return request({
        url: '/system/inventoryCounting/callSpaceTrust',
        method: 'post',
        data: data
    })
}

export function AirBracketSupplement(data) {
    return request({
        url: '/system/inventoryCounting/AirBracketSupplement',
        method: 'post',
        data: data
    })
}

//空箱要货
export function emptyGoods(data) {
    return request({
        url: '/system/inventoryCounting/emptyGoods',
        method: 'post',
        data: data
    })
}
export function applyPallet(data) {
    return request({
        url: '/system/inventoryCounting/applyPallet',
        method: 'post',
        data: data
    })
}
export function sendPallet(data) {
    return request({
        url: '/system/inventoryCounting/sendPallet',
        method: 'post',
        data: data
    })
}
//入库
export function Storage(data) {
    return request({
        url: '/system/inventoryCounting/Storage',
        method: 'post',
        data: data
    })
}

//回库
export function ReturnStorage(data) {
    return request({
        url: '/system/inventoryCounting/ReturnStorage',
        method: 'post',
        data: data
    })
}

//回托补满
export function fillBack(data) {
    return request({
        url: '/system/inventoryCounting/fillBack',
        method: 'post',
        data: data
    })
}

export function Outbound(data) {
    return request({
        url: '/system/inventoryCounting/Outbound',
        method: 'post',
        data: data
    })
}

export function CallEmpty(data) {
    return request({
        url: '/system/inventoryCounting/CallEmpty',
        method: 'post',
        data: data
    })
}

// 空拖回库
export function emptyPalletReturn(data) {
    return request({
        url: '/system/emptyPallet/return',
        method: 'post',
        data: data
    })
}

// 呼叫空拖
export function emptyPalletCall(data) {
    return request({
        url: '/system/emptyPallet/call',
        method: 'post',
        data: data
    })
}

// 查询空拖盘列表（可选，用于后续扩展）
export function listEmptyPallet(query) {
    return request({
        url: '/system/emptyPallet/list',
        method: 'get',
        params: query
    })
}

// 获取所有托盘列表
export function listAllPallets() {
    return request({
        url: '/system/pallet/listAll',
        method: 'get'
    })
}
